<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Helloworld extends CI_Controller {

	function __construct()
	{
		parent::__construct();
		//$this->load->database();
		$this->load->model('helloworld_model');
		
		$this->load->config('zs_config');
	}
	
	public function index(){
        $this->load->view('common/header');
        $hello = $this->helloworld_model->get_helloworld();

        $this->load->view('helloworld', array('hello'=>$hello));
        $this->load->view('common/footer');
	}
}

